/*
 * Alloy Analyzer
 * Copyright (c) 2002 Massachusetts Institute of Technology
 *
 * The Alloy Analyzer is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * The Alloy Analyzer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with the Alloy Analyzer; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package alloy.ast;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Alloy Analyzer<br>
 * Copyright (c) 2001<br>
 * Massachusetts Institute of Technology<br>
 * <p>
 * Class: Invocation<br>
 * owner: msridhar<br>
 * Interface status: unstable<br>
 * Implementation status: unstable<br>
 * <p>
 * An interface implemented by function invocation
 * nodes.
 */

public interface Invocation extends Node {

    /**
     * gets the receiver name of this
     * @return the {@link Expr}
     */
    public Expr getReceiver();

    /** sets the receiver of this */
  	void setReceiver(Expr receiver_);

    /**
     * gets the function name of this
     * @return the {@link QualifiedName}
     */
    public QualifiedName getInvocableName();

	/** sets the function of this */
	void setInvocableName(QualifiedName function_);

    /**
     * gets the exprs of this
     * @return the {@link Exprs}
     */
    public Exprs getExprs();

	/**
	 * set the exprs of this
	 */
	void setExprs(Exprs exprs_);

    /**
     * get the var type mapping of this, the bindings
     * between the invoked function's var types and the
     * actual types passed in by this
     * @return the var type mapping
     */
    public Map getVarTypeMapping();

    /**
     * set the var type mapping of this, the bindings
     * between the invoked function's var types and the
     * actual types passed in by this
     * @param varTypeMapping_ the new var type mapping
     */
    public void setVarTypeMapping(Map varTypeMapping_);

    public InvocablePara getInvocable();

    public void setInvocable(InvocablePara invocable_);

    public List getArgs();

}

